﻿using System.Collections.ObjectModel;

namespace TuLing.Entities
{
    public class BuyOrder 
    {
        public long Id { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
        public long SupplierId { get; set; }
        public string? Remark { get; set; }
        public DateTime CreatedAt { get; set; } = DateTime.Now;

        public virtual Supplier Supplier { get; set; }
        public virtual ObservableCollection<BuyOrderDetail> Details { get; set; } = new ObservableCollection<BuyOrderDetail>();
    }
}